package cn.jiyun.feign;

import cn.jiyun.pojoday08.Course;
import cn.jiyun.pojoday11.PaperDTO;
import cn.jiyun.pojoday11.PaperTopic;
import cn.jiyun.pojoday11.PaperVO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: 小周
 * @Package: cn.jiyun.feign
 * @Project: 2210A-project1
 * @name: TestService
 * @Date: 2023/8/23 19:34
 * @Filename: TestService
 */
@FeignClient(value = "day11paper")
public interface TestService3 {

    @RequestMapping("/TextPaper/toPaper")
    List<PaperVO> toPaper(@RequestParam("eid") String s);
    @RequestMapping("/TextPaper/toPaperInfo")
    List<PaperTopic> toPaperInfo(@RequestParam("pid")String pid);
    @RequestMapping("/TextPaper/toPaperAll")
    PageInfo<PaperVO> toPaperAll(@RequestBody PaperDTO paperDTO);
}
